
@extends('layouts.app')

@section('title', $user->name . ' 的个人中心')

@section('content')

    <div class="row">

        <div class="col-lg-3 col-md-3 hidden-sm hidden-xs user-info">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="media-body">
                        <h4><strong>个人签名</strong></h4>
                        <p>{{ $user->introduction }}</p>

                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
            <div class="panel panel-default">
                <div class="panel-body">
                <span>
                    <h1 class="panel-title pull-left" style="font-size:30px;">{{ $user->name }}</h1>
                </span>
                </div>

                <div class="panel-body">
                    <div>
                        <a  href="{{ route('users.edit', Auth::id()) }}">编辑资料</a>
                    </div>
                    <div align="center">
                        <img class="thumbnail img-responsive" src="{{ $user->avatar }}" width="300px" height="300px">
                    </div>
                    <div class="media-body">
                        <h4><strong>注册于</strong></h4>
                        <p>{{ $user->created_at->diffForHumans() }}</p>

                    </div>
                </div>

            </div>
            <hr>
        </div>
    </div>
@stop